package org.example.carousel.service.impl;

import org.example.carousel.mapper.HistoricalSearchMapper;
import org.example.carousel.service.HistoricalSearchService;
import org.example.model.domain.HistoricalSearch;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HistoricalSearchServiceImpl implements HistoricalSearchService {
    @Autowired
    HistoricalSearchMapper historicalSearchMapper;

    @Override
    public List<HistoricalSearch> findHistoricalSearch() {
        return historicalSearchMapper.findHistoricalSearch();
    }

    @Override
    public int deleteHistoricalSearch() {
        return historicalSearchMapper.deleteHistoricalSearch();
    }

    @Override
    public int addHistoricalSearch(HistoricalSearch historicalSearch) {
        return historicalSearchMapper.addHistoricalSearch(historicalSearch);
    }
}
